<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <style>
    
  </style>
</head>
<body>
  
</body>
<script>

  // const obj = {};

  // obj.name = "admin";

  // obj.__proto__.name = "哈哈";

  // console.log( obj.__proto__ === Object.prototype );

  // console.log( Object.prototype );
  // console.log( obj.__proto__ );

  // console.log(obj);

  // console.log(obj.name);



  // =========

  function fn(){}

  const f = new fn();

  f.name = "admin";
  f.__proto__.name = "root";
  f.__proto__.__proto__.name = "哈哈哈";

  console.log( f.__proto__ === fn.prototype );
  console.log( f.__proto__.__proto__ === Object.prototype );
  console.log( fn.prototype.__proto__ === Object.prototype );

  console.log( f );
  
  console.log( f.name );


</script>
</html>